import request from '@/utils/request'

export function login(data) {
  return request({
    url: 'v1/user/login',
    method: 'GET',
    params: data
  })
}

export function getInfo(code, account) {
  debugger
  return request({
    url: '/v1/user/info',
    method: 'get',
    params: { code, account }
  })
}

export function logout(id) {
  return request({
    url: '/v1/user/logout',
    method: 'GET',
    param: id
  })
}
